package org.wiw.client;

import java.util.List;

import org.wiw.client.model.Person;
import org.wiw.client.model.Place;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("map")
public interface MapService extends RemoteService {
	public String greetServer(String name);
	
	public Person getCurrentUser();
	
	public void updatePerson(long id, String color);
	
	public Place addPlace(double latitude, double longitude, Person person, String when, String description);
	
	public void movePlace(String id, double latitude, double longitude);
	
	public void editPlace(String id, String when, String description);
	
	public void removePlace(String id);
	
	public List<Place> getAllPlaces();
}
